package models;

import play.*;
import play.db.jpa.*;

import javax.persistence.*;

import java.util.*;

@Entity
@Table(name = "replies_reviews")
public class Reply extends Model {
    
	@Lob
	public String reply;
	public long reviewId;
	public long userId;
	
	@ManyToOne 
	@JoinColumn(name="replies")
	public Review reviewReplies;
	
	public Reply(String reply, long reviewId, long userId){
		this.reply = reply;
		this.reviewId = reviewId;
		this.userId = userId;
	}
	
	public String getReply() {
		return reply;
	}

	public void setReply(String reply) {
		this.reply = reply;
	}

	public long getReviewId() {
		return reviewId;
	}

	public void setReviewId(long reviewId) {
		this.reviewId = reviewId;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public Review getReviewReplies() {
		return reviewReplies;
	}

	public void setRevieweReplies(Review revieweReplies) {
		this.reviewReplies = revieweReplies;
	}

	
}
